<?php
	class User extends AUser {
		public static $userCount = 0;
		public $name;
		public $login;
		public $password;

		function __construct($name, $login, $password) {
			$this->name = $name;
			$this->login = $login;
			$this->password = $password;
			++self::$userCount;
		}

		function __clone() {
			$this->name = '';
			$this->login = '';
			$this->password = '';
		}

		function show_info() {
			echo "Name: {$this->name} <br />
			 Login: {$this->login}<br />
			 Password: {$this->password} <br /> <hr />";
		}

		function __destruct() {
			echo "Пользователь {$this->name} удален . <br />";
		}
	}
?>